<table cellspacing="0" cellpadding="0" width="100%">
    <tr>
        <td valign="middle"align="center" height="40" class="shopOnline">
            <a href="#">{{if $user<>""}} Hi, {{$user->username}}</a> <a style="font-size: 10px" href="{{$base_index_url}}/user/logout">Logout</a>{{else}}<a href="{{$base_index_url}}/user/login">Login</a>{{/if}}
        </td>
    </tr>
</table>